package cn.fisok.pdman.command;

import com.alibaba.fastjson.annotation.JSONField;

import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;

public class ExecResult implements Serializable {
    public static final String SUCCESS = "SUCCESS";
    public static final String FAILED = "FAILED";

    @JSONField(ordinal=10)
    private String status;
    @JSONField(ordinal=20)
    private Object body;
    @JSONField(ordinal=30)
    private Map<String,Object> properties = new HashMap<String,Object>();

    public ExecResult() {
    }

    public ExecResult(String status, String body) {
        this.status = status;
        this.body = body;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public Object getBody() {
        return body;
    }

    public void setBody(Object body) {
        this.body = body;
    }

    public Map<String, Object> getProperties() {
        return properties;
    }

    public void setProperties(Map<String, Object> properties) {
        this.properties = properties;
    }
}
